package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffOneDeptTributPowerStaffDto
 * @使用场景
 */
@Data
public class BffOneDeptTributPowerStaffDto implements Serializable {

    /**
     * 就职记录ID
     */
    @ApiModelProperty("就职记录ID")
    private String inductionRecordId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 身份人员编号
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 职务信息展示
     */
    @ApiModelProperty("职务信息展示")
    private String positionIdName;

    /**
     * 冗余部门名称
     */
    @ApiModelProperty("冗余部门名称")
    private String deptShortName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffOneDeptTributPowerStaffDto that = (BffOneDeptTributPowerStaffDto) o;
        return inductionRecordId == that.inductionRecordId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && originalRoleMemberId == that.originalRoleMemberId && roleMemberCode == that.roleMemberCode && positionIdName == that.positionIdName && deptShortName == that.deptShortName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), inductionRecordId, userId, userFace, idCardName, nickName, originalRoleMemberId, roleMemberCode, positionIdName, deptShortName);
    }


}
   